﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Baosight.Platform.Core.UI.Controls;
using Telerik.Windows.Controls;
using Baosight.ZNH.ZMCommon;
using Baosight.ZNH.ZM.UI;
using Baosight.Platform.Core.UI;
using Baosight.Platform.Core;
using Baosight.Platform.Core.ServiceModel;
using Telerik.Windows.Controls.GridView;
using Microsoft.Practices.Unity;

namespace Baosight.ZNH.ZM.UI
{
    public partial class ZM96 : EFViewCmes
    {
        public ZM96()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 点击查看按钮执行的事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void HyperlinkButton_Click(object sender, RoutedEventArgs e)
        {
            HyperlinkButton link = sender as HyperlinkButton;
            EIRow row = (link.ParentOfType<GridViewRow>().Item as UIBaseEntity).GetEIRow();

            IUnityContainer pContainer = (IUnityContainer)this.Container;
            IShell shell = pContainer.Resolve<Baosight.Platform.Core.UI.IShell>();
            shell.LoadView(row["fdFrontPage"].ToString());
        }
    }
}
